package com.ydkj.a37e_mall.Classes.Model.Response;

import java.util.List;

/**
 * Created by Administrator on 2017/2/10.
 */

public class RightDataTpyeResp {


    /**
     * errno : 000
     * errmsg :
     * result : {"data":[{"id":"6","name":"手机","column":"|----手机","thumb":"","parent_id":"5","parent":"3C产品","created_at":"2017-01-23 17:42:12","updated_at":"2017-01-23 17:56:11","path":"0-5-6","separator":"|----","brands":"","format_type":1,"sub":[{"id":"10","name":"老人机","column":"|------老人机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 18:28:12","updated_at":"2017-02-09 18:28:12","path":"0-5-6-10","separator":"|------","brands":"","format_type":1},{"id":"11","name":"三防机","column":"|------三防机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 20:15:08","updated_at":"2017-02-09 20:22:59","path":"0-5-6-11","separator":"|------","brands":"","format_type":1},{"id":"12","name":"大屏机","column":"|------大屏机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 20:17:58","updated_at":"2017-02-09 20:17:58","path":"0-5-6-12","separator":"|------","brands":"","format_type":1},{"id":"9","name":"智能手机","column":"|------智能手机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 18:28:12","updated_at":"2017-02-09 18:28:12","path":"0-5-6-9","separator":"|------","brands":"","format_type":1}]},{"id":"7","name":"电脑","column":"|----电脑","thumb":"","parent_id":"5","parent":"3C产品","created_at":"2017-01-23 17:42:31","updated_at":"2017-01-23 17:56:11","path":"0-5-7","separator":"|----","brands":"","format_type":1}],"total_page":1,"current_page":1,"total":"6","access_token":""}
     */

    private String errno;
    private String errmsg;
    private ResultEntity result;

    public String getErrno() {
        return errno;
    }

    public void setErrno(String errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ResultEntity getResult() {
        return result;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public static class ResultEntity {
        /**
         * data : [{"id":"6","name":"手机","column":"|----手机","thumb":"","parent_id":"5","parent":"3C产品","created_at":"2017-01-23 17:42:12","updated_at":"2017-01-23 17:56:11","path":"0-5-6","separator":"|----","brands":"","format_type":1,"sub":[{"id":"10","name":"老人机","column":"|------老人机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 18:28:12","updated_at":"2017-02-09 18:28:12","path":"0-5-6-10","separator":"|------","brands":"","format_type":1},{"id":"11","name":"三防机","column":"|------三防机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 20:15:08","updated_at":"2017-02-09 20:22:59","path":"0-5-6-11","separator":"|------","brands":"","format_type":1},{"id":"12","name":"大屏机","column":"|------大屏机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 20:17:58","updated_at":"2017-02-09 20:17:58","path":"0-5-6-12","separator":"|------","brands":"","format_type":1},{"id":"9","name":"智能手机","column":"|------智能手机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 18:28:12","updated_at":"2017-02-09 18:28:12","path":"0-5-6-9","separator":"|------","brands":"","format_type":1}]},{"id":"7","name":"电脑","column":"|----电脑","thumb":"","parent_id":"5","parent":"3C产品","created_at":"2017-01-23 17:42:31","updated_at":"2017-01-23 17:56:11","path":"0-5-7","separator":"|----","brands":"","format_type":1}]
         * total_page : 1
         * current_page : 1
         * total : 6
         * access_token :
         */

        private int total_page;
        private int current_page;
        private String total;
        private String access_token;
        private List<DataEntity> data;

        public int getTotal_page() {
            return total_page;
        }

        public void setTotal_page(int total_page) {
            this.total_page = total_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public static class DataEntity {
            /**
             * id : 6
             * name : 手机
             * column : |----手机
             * thumb :
             * parent_id : 5
             * parent : 3C产品
             * created_at : 2017-01-23 17:42:12
             * updated_at : 2017-01-23 17:56:11
             * path : 0-5-6
             * separator : |----
             * brands :
             * format_type : 1
             * sub : [{"id":"10","name":"老人机","column":"|------老人机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 18:28:12","updated_at":"2017-02-09 18:28:12","path":"0-5-6-10","separator":"|------","brands":"","format_type":1},{"id":"11","name":"三防机","column":"|------三防机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 20:15:08","updated_at":"2017-02-09 20:22:59","path":"0-5-6-11","separator":"|------","brands":"","format_type":1},{"id":"12","name":"大屏机","column":"|------大屏机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 20:17:58","updated_at":"2017-02-09 20:17:58","path":"0-5-6-12","separator":"|------","brands":"","format_type":1},{"id":"9","name":"智能手机","column":"|------智能手机","thumb":"","parent_id":"6","parent":"手机","created_at":"2017-02-09 18:28:12","updated_at":"2017-02-09 18:28:12","path":"0-5-6-9","separator":"|------","brands":"","format_type":1}]
             */

            private String id;
            private String name;
            private String column;
            private String thumb;
            private String parent_id;
            private String parent;
            private String created_at;
            private String updated_at;
            private String path;
            private String separator;
            private String brands;
            private int format_type;
            private List<SubEntity> sub;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getColumn() {
                return column;
            }

            public void setColumn(String column) {
                this.column = column;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }

            public String getParent() {
                return parent;
            }

            public void setParent(String parent) {
                this.parent = parent;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public String getPath() {
                return path;
            }

            public void setPath(String path) {
                this.path = path;
            }

            public String getSeparator() {
                return separator;
            }

            public void setSeparator(String separator) {
                this.separator = separator;
            }

            public String getBrands() {
                return brands;
            }

            public void setBrands(String brands) {
                this.brands = brands;
            }

            public int getFormat_type() {
                return format_type;
            }

            public void setFormat_type(int format_type) {
                this.format_type = format_type;
            }

            public List<SubEntity> getSub() {
                return sub;
            }

            public void setSub(List<SubEntity> sub) {
                this.sub = sub;
            }

            public static class SubEntity {
                /**
                 * id : 10
                 * name : 老人机
                 * column : |------老人机
                 * thumb :
                 * parent_id : 6
                 * parent : 手机
                 * created_at : 2017-02-09 18:28:12
                 * updated_at : 2017-02-09 18:28:12
                 * path : 0-5-6-10
                 * separator : |------
                 * brands :
                 * format_type : 1
                 */

                private String id;
                private String name;
                private String column;
                private String thumb;
                private String parent_id;
                private String parent;
                private String created_at;
                private String updated_at;
                private String path;
                private String separator;
                private String brands;
                private int format_type;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getColumn() {
                    return column;
                }

                public void setColumn(String column) {
                    this.column = column;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public String getParent_id() {
                    return parent_id;
                }

                public void setParent_id(String parent_id) {
                    this.parent_id = parent_id;
                }

                public String getParent() {
                    return parent;
                }

                public void setParent(String parent) {
                    this.parent = parent;
                }

                public String getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(String created_at) {
                    this.created_at = created_at;
                }

                public String getUpdated_at() {
                    return updated_at;
                }

                public void setUpdated_at(String updated_at) {
                    this.updated_at = updated_at;
                }

                public String getPath() {
                    return path;
                }

                public void setPath(String path) {
                    this.path = path;
                }

                public String getSeparator() {
                    return separator;
                }

                public void setSeparator(String separator) {
                    this.separator = separator;
                }

                public String getBrands() {
                    return brands;
                }

                public void setBrands(String brands) {
                    this.brands = brands;
                }

                public int getFormat_type() {
                    return format_type;
                }

                public void setFormat_type(int format_type) {
                    this.format_type = format_type;
                }
            }
        }
    }
}
